<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags/table" %>
<div id="user_overview" class="user_overview_div">
	<t:head code="user.overview.title" />
	<div class="user_list_div">
		<t:line head="true">
			<t:cell type="id" ><spring:message code="form.id"/></t:cell>
			<t:cell type="username" ><spring:message code="form.username"/></t:cell>
			<t:cell type="email" ><spring:message code="form.email"/></t:cell>
			<t:cell type="roles" ><spring:message code="form.roles"/></t:cell>
		</t:line>
		<c:forEach items="${users}" var="user">
			<t:line>
				<t:cell type="id"><c:out value="${user.id}" /></t:cell>
				<t:cell type="username"><c:out value="${user.username}" /></t:cell>
				<t:cell type="email"><c:out value="${user.email}" /></t:cell>
				<t:cell type="roles">
					<c:forEach items="${user.roles}" var="role">
						<c:out value="${role.name}" />
					</c:forEach>
				</t:cell>
				<t:buttons id="${user.id}" delete="true" edit="true"></t:buttons>
			</t:line>
		</c:forEach>
	</div>
</div>